<div class="tab-pane fade in active" id="history">
    <h2 class="tab-cont-h2">
        <a href="javascript:;">运单管理</a> > <span>历史运单</span>
    </h2>
    <div class="nav-search">
        <div class="col">
            <label class="nav-label">标书编号</label>
            <div class="inputbg">
                <input type="text" class="input" id="HBid_No">
            </div>
        </div>
        <div class="col">
            <label class="nav-label">订单编号</label>
            <div class="inputbg">
                <input type="text" class="input" id="HOrderNumber">
            </div>
        </div>
        <div class="col">
            <label class="nav-label">运单状态</label>
            <div class="inputbg">
                <select class="select" id="HState">
                     <option value="0">全部</option>
                    <option value="1">等待取货</option>
                    <option value="10">未取货</option>
                    <option value="20">已取货</option>
                    <option value="30">到货确认</option>
                    <option value="40">回单确认</option>
                    <option value="50">运单结束</option>
                    <option value="100">关闭</option>
                </select>
            </div>
        </div>
        <div class="col col1">
            <label class="nav-label">取货时间</label>
            <div class="inputbg">
                <input type="text" class="input start datepicker" id="Hconsignee_time1"> --
                <input type="text" class="input end datepicker" id="Hconsignee_time2">
            </div>
        </div>
        <div class="col col1">
            <label class="nav-label">回单时间</label>
            <div class="inputbg">
                <input type="text" class="input start datepicker" id="HPickup_time1"> --
                <input type="text" class="input end datepicker" id="HPickup_time2">
            </div>
        </div>
        <input type="hidden" id="hpage" value="1" />
        <a href="javascript:;" class="btn btn-primary" id="HQUery">查询</a>
    </div>
     <input type="hidden" id="whpage" value="1" />
    <div class="" id="waybillHistoryCont">

    </div>
     <nav class="page-nav">
        <ul class="pagination" id="wayHisdemo">
           
        </ul>
    </nav>
</div>
<script type="text/javascript" src="bootstrap-datetimepicker.js" charset="UTF-8"></script>
<script type="text/javascript" src="bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript" src="jqPaginator.js" charset="UTF-8"></script>
<script src="waybill_history.js"></script>
<script type="text/template" id="waybillHistoryTpl">
 <table class="table table-hover table-responsive">
            <tr class="thead">
                <td class="td1">标书编码</td>
                <td class="td2">订单编号</td>
                <td class="td3">取货时间</td>
                <td class="td4">收货地</td>
                <td class="td5">回单时间</td>
                <td class="td6">价格（元）</td>
                <td class="td7">运单状态</td>
                <td class="td8">备注</td>
                <!--<td class="td9">操作</td>-->
            </tr>
            <tr class="trh7">
                <td colspan="8">&nbsp;</td>
            </tr>
            <%if(obj.Items.length>0){%>

           <%_.each(obj.Items,function(item,i){%>
            <tr class="tbody tbody-<%=(i%2 == 0 ? 1:2)%>">
             <td>
                <a href="javascript:;" class="bid-no" data-id="<%=item.bid_id%>"><%=item.bid_no%></a>
            </td>
            <td class="tdtextal"><%=item.order_num%></td>
            <td><%=item.consignee_time%></td>
            <td class="tdtextal"><%=item.end_address%></td>
            <td><%=item.pickup_time%></td>
            <td><%=item.price%></td>
            <td><%if(item.load_state==1){%>
                等待取货
                <%}else if(item.load_state==10){%>
                    未取货
                <%}else if(item.load_state==20){%>
                    已取货
               <%}else if(item.load_state==30){%>
                    到货确认
                <%}else if(item.load_state==40){%>
                    回单确认 
                <%}else if(item.load_state==50){%>
                    运单结束 
                <%}else if(item.load_state==100){%>
                    关闭 
                <%}%>
                </td>
            <td><%=item.load_remark%></td>
           <!-- <td><a href="#" onclick="javascript:void(0)" data-id="<%=item.id%>"  data-toggle="modal" class="J_show-detail">查看详情</a></td>-->
            </tr>

        <%})%>
            <%}else{%>
               <tr><td colspan="8" style="text-align:center;">暂无数据</td></tr>
            <%}%>

        </table>
</script>
